import Cinemas from "../pages/cinemas/cinemas.js";
import Add from "../pages/cinemas/addCinemas.js";
import Update from "../pages/cinemas/updateCinemas.js"
import Upload from "../pages/cinemas/uploadImg.js"

export default {
    // 影院信息列表
    "/cinemas": {
        on() {
            new Cinemas({ el: ".info-content" });
        }
    },
    // 新增影院
    "/add-cinema": {
        on() {
            new Add({ el: ".info-content" });
        }
    },
    // 更新影院
    "/update-cinema": {
        on() {
            new Update({ el: ".info-content" });
        }
    },
    // 上传海报
    "/upload-imgs/:_id": {
        on(_id) {
            new Upload({ el: ".info-content", _id });
        }
    },
}